package 智能家电;

import java.util.*;
public class WashingMachine extends Household{
    private double capacity;
    public  WashingMachine(String brand,Date productDate,double capacity){
        // this.brand = brand;
        // this.productDate = productDate;
        super(brand, productDate);
        this.capacity = capacity;
    }
    public double getCapacity(){
        return this.capacity;
    }
    public void setCapacity(double capacity){
        this.capacity = capacity;
    }

    public String toString(){
        String w = "WashingMachine[" +
               "brand=" + getBrand() +
               ", productDate=" + getProductDateString() +
               ", capacity=" + getCapacity() +
               ']';
        return w;
    }
}